package usernew;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/11 8:58
 * @description:
 */
public class User {


  private String name;
  private  int id;
  private  int age;
  private  String password;


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public int getAge() {
    return age;
  }

  public void setAge(int age) {
    this.age = age;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }
  User (){}



  public User(String name, int id, int age, String password) {
    this.name = name;
    this.id = id;
    this.age = age;
    this.password = password;




  }


  @Override
  public String toString() {
    return "User{" +
        "name='" + name + '\'' +
        ", id=" + id +
        ", age=" + age +
        ", password='" + password + '\'' +
        '}';
  }
}
